package exercise12;

import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;

public class Exer12_5 extends JFrame{
	
	public Exer12_5(){
		setLayout(new GridLayout(4, 1, 1, 0));
		
		JLabel firstRow = new JLabel("Department of Computer Science");
		JLabel secondRow = new JLabel("School of Computing");
		JLabel thirdRow = new JLabel("Armstrong Atiantic State University");
		JLabel fourthRow = new JLabel("Tel:(912) 921-6440");
		
		Border lineBorder = new LineBorder(Color.GREEN, 3);
		firstRow.setBorder(lineBorder);
		secondRow.setBorder(lineBorder);
		thirdRow.setBorder(lineBorder);
		fourthRow.setBorder(lineBorder);
		
		add(firstRow);
		add(secondRow);
		add(thirdRow);
		add(fourthRow);
		
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		JFrame frame = new Exer12_5();
		frame.setTitle("Exercise12_5");
		frame.setSize(250, 150);
		frame.setLocationRelativeTo(null);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);

	}

}
